using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PrjSerails
{
    public partial class ShowMessageSinInfo : Form
    {
        private string msg;

        public ShowMessageSinInfo(string s)
        {
            msg = s;
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void ShowMessageSinInfo_Load(object sender, EventArgs e)
        {
            this.label1.Text = msg.ToString();
            this.Width = this.label1.Width * 3 / 2;
            this.label1.Left = (this.Width - this.label1.Width) / 2;
            this.button1.Left = (this.Width - this.button1.Width) / 2;
        }

       
    }
}